<%-- 
    Document   : footer
    Created on : 2015-8-13, 23:15:06
    Author     : jansing
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<div class="header">
    <div class="header-container">
        <div class="adjust-exit">
            <span class="fa fa-user fa-fw not-manager-hidden"></span>
            <a class="user-manage not-manager-hidden" href="<c:url value = "/userManagement"/>">用户管理</a>					
            <span class="fa fa-gear fa-fw not-manager-hidden"></span>
            <a class="manage not-manager-hidden" href="<c:url value = "/fileManagement"/>">文档管理</a>
            <span class="fa fa-home fa-fw"></span>
            <a class="recomendation" href="<c:url value="/main"/>">首页</a>
            <span class="fa fa-close fa-fw"></span>
            <a class="exit" href="<c:url value="/logout"/>">注销</a>
        </div>
        <div class="adjust-title">
            <span class="DMOS-logo fa-stack">
                <span class="fa fa-cloud fa-stack-2x fa-fw"></span>
                <span class="fa fa-file-text fa-stack-1x fa-fw"></span>
            </span>
            <p class="title">E-TOP在线文档浏览系统</p>
        </div>
        <!--搜索框include-->
        <jsp:include page="/WEB-INF/inc/search.jsp"/>
        <!--以下是登录、注册框-->
        <div class="login-regist">
            <button class="change-login active" type="button">登录</button>
            <button class="change-regist" type="button">注册</button>
            <span class="array"></span>
            <form class="login" action="<c:url value="/login"/>" method="post">
                <!--登录框-->
                <div class="adjust-icon">
                    <span class="fa fa-user fa-fw"></span>
                    <input type="text" placeholder="用户名" name="username"/>
                </div>
                <div class="adjust-icon">
                    <span class="fa fa-key fa-fw"></span>
                    <input type="password" placeholder="密码" name= "password"/>
                </div>
                <div class="adjust-icon">
                    <span class="fa fa-keyboard-o fa-fw"></span>
                    <input class="identify" type="text" placeholder="验证码" />
                    <img src="<%=request.getContextPath()%>/img/check.png" />
                </div>
                <input type="checkbox" id="remember-me" />
                <label class="label-rem" for="remember-me">记住我</label>
                <a class="forget" href="#">忘记密码</a>
                <input type="submit" value="登录" />
            </form>
            <!--登录框-->
            <form class="regist" action="<c:url value="/regist"/>" method="post">
                <!--注册框-->
                <div class="adjust-icon">
                    <span class="fa fa-user fa-fw"></span>
                    <input type="text" placeholder="用户名" name="username"/>
                </div>
                <div class="adjust-icon">
                    <span class="fa fa-mobile-phone fa-fw"></span>
                    <input type="text" placeholder="手机/邮箱" name="teleOrEmail"/>
                </div>
                <div class="adjust-icon">
                    <span class="fa fa-key fa-fw"></span>
                    <input type="password" placeholder="密码" name= "password"/>
                </div>
                <div class="adjust-icon">
                    <span class="fa fa-keyboard-o fa-fw"></span>
                    <input class="identify" type="text" placeholder="验证码" />
                    <img src="<%=request.getContextPath()%>/img/check.png" />
                </div>
                <input type="submit" value="注册" />
            </form>
            <!--注册框-->
        </div>
        <!--登录、注册框-->
        <c:if test="${not empty loginUser}">
            <div class="portrait">
                <!--登录后的头像框-->
                <a class="img_a" href="<c:url value="/modifyInfo"/>"/>
                    <img src="<%=request.getContextPath()%>/${loginUser.headpic}"/>
                </a>
                <a href="<c:url value="/modifyInfo"/>"/>
                    <p>${loginUser.username }</p>
                </a>
                <a class="dolowned" href="#">已下载<span>${loginUser.downtotal }</span></a>
                <a class="collection" href="#">已收藏<span>${loginUser.collecttotal}</span></a>
                <a class="my-document" href="#">我的文档<span>${loginUser.uptotal}</span></a>
                <a class="upload" href="<c:url value="/upload"/>">上传文件</a>
            </div>
        </c:if>
        <!--登录后的头像框-->
    </div>
</div>
